package models

import "gorm.io/gorm"

type User struct {
	gorm.Model
	UserAccount  string
	UserPassword string
}

func (u *User) GetUserByAccount() error {
	return DB.Where("user_account = ?", u.UserAccount).Limit(1).Find(&u).Error
}
